package com.jtpay.ysfproductionprocess.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Description:
 * File: VirtualCardModel.java
 * Author: Administrator
 * Create: 2018/09/08 09:35
 */
public class EncryptModel implements Parcelable {
    private String en_money;
    private String en_remark;
    private String en_cityCode;
    private String en_virtualCardNo;
    private String en_order_id;

    @Override
    public String toString() {
        return "EncryptModel{" +
                "en_money='" + en_money + '\'' +
                ", en_remark='" + en_remark + '\'' +
                ", en_cityCode='" + en_cityCode + '\'' +
                ", en_virtualCardNo='" + en_virtualCardNo + '\'' +
                '}';
    }

    public String getEn_money() {
        return en_money;
    }

    public void setEn_money(String en_money) {
        this.en_money = en_money;
    }

    public String getEn_remark() {
        return en_remark;
    }

    public void setEn_remark(String en_remark) {
        this.en_remark = en_remark;
    }

    public String getEn_cityCode() {
        return en_cityCode;
    }

    public void setEn_cityCode(String en_cityCode) {
        this.en_cityCode = en_cityCode;
    }

    public String getEn_virtualCardNo() {
        return en_virtualCardNo;
    }

    public void setEn_virtualCardNo(String en_virtualCardNo) {
        this.en_virtualCardNo = en_virtualCardNo;
    }

    public String getEn_orderId() {
        return en_order_id;
    }

    public void setEn_orderId(String en_orderId) {
        this.en_order_id = en_orderId;
    }

    public String getCombinationUrl() {
        return "https://pay.95516.com/pay-web/restlet/qr/p2pPay/applyQrCode?txnAmt=" + en_money
                + "&comments=" + en_remark + "&cityCode=" + en_cityCode
                + "&virtualCardNo=" + en_virtualCardNo;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.en_money);
        dest.writeString(this.en_remark);
        dest.writeString(this.en_cityCode);
        dest.writeString(this.en_virtualCardNo);
    }

    public EncryptModel() {
    }

    protected EncryptModel(Parcel in) {
        this.en_money = in.readString();
        this.en_remark = in.readString();
        this.en_cityCode = in.readString();
        this.en_virtualCardNo = in.readString();
    }

    public static final Parcelable.Creator<EncryptModel> CREATOR = new Parcelable.Creator<EncryptModel>() {
        @Override
        public EncryptModel createFromParcel(Parcel source) {
            return new EncryptModel(source);
        }

        @Override
        public EncryptModel[] newArray(int size) {
            return new EncryptModel[size];
        }
    };
}
